Optimal. Leaf size=88 \[ -\frac{(3 A b-a B) \tan ^{-1}\left (\frac{\sqrt{b} \sqrt{x}}{\sqrt{a}}\right )}{a^{5/2} \sqrt{b}}-\frac{3 A b-a B}{a^2 b \sqrt{x}}+\frac{A b-a B}{a b \sqrt{x} (a+b x)} \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.107759, antiderivative size = 88, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 5, integrand size = 29, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.172 \[ -\frac{(3 A b-a B) \tan ^{-1}\left (\frac{\sqrt{b} \sqrt{x}}{\sqrt{a}}\right )}{a^{5/2} \sqrt{b}}-\frac{3 A b-a B}{a^2 b \sqrt{x}}+\frac{A b-a B}{a b \sqrt{x} (a+b x)} \]
Antiderivative was successfully verified.
[In] Int[(A + B*x)/(x^(3/2)*(a^2 + 2*a*b*x + b^2*x^2)),x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [A] time = 26.4615, size = 73, normalized size = 0.83 \[ \frac{A b - B a}{a b \sqrt{x} \left (a + b x\right )} - \frac{3 A b - B a}{a^{2} b \sqrt{x}} - \frac{\left (3 A b - B a\right ) \operatorname{atan}{\left (\frac{\sqrt{b} \sqrt{x}}{\sqrt{a}} \right )}}{a^{\frac{5}{2}} \sqrt{b}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate((B*x+A)/x**(3/2)/(b**2*x**2+2*a*b*x+a**2),x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.0827098, size = 67, normalized size = 0.76 \[ \frac{(a B-3 A b) \tan ^{-1}\left (\frac{\sqrt{b} \sqrt{x}}{\sqrt{a}}\right )}{a^{5/2} \sqrt{b}}+\frac{-2 a A+a B x-3 A b x}{a^2 \sqrt{x} (a+b x)} \]
Antiderivative was successfully verified.
[In] Integrate[(A + B*x)/(x^(3/2)*(a^2 + 2*a*b*x + b^2*x^2)),x]
[Out]
_______________________________________________________________________________________
Maple [A] time = 0.025, size = 87, normalized size = 1. \[ -2\,{\frac{A}{{a}^{2}\sqrt{x}}}-{\frac{Ab}{{a}^{2} \left ( bx+a \right ) }\sqrt{x}}+{\frac{B}{a \left ( bx+a \right ) }\sqrt{x}}-3\,{\frac{Ab}{{a}^{2}\sqrt{ab}}\arctan \left ({\frac{b\sqrt{x}}{\sqrt{ab}}} \right ) }+{\frac{B}{a}\arctan \left ({b\sqrt{x}{\frac{1}{\sqrt{ab}}}} \right ){\frac{1}{\sqrt{ab}}}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int((B*x+A)/x^(3/2)/(b^2*x^2+2*a*b*x+a^2),x)
[Out]
_______________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \[ \text{Exception raised: ValueError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((B*x + A)/((b^2*x^2 + 2*a*b*x + a^2)*x^(3/2)),x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.317087, size = 1, normalized size = 0.01 \[ \left [-\frac{{\left (B a^{2} - 3 \, A a b +{\left (B a b - 3 \, A b^{2}\right )} x\right )} \sqrt{x} \log \left (-\frac{2 \, a b \sqrt{x} - \sqrt{-a b}{\left (b x - a\right )}}{b x + a}\right ) + 2 \,{\left (2 \, A a -{\left (B a - 3 \, A b\right )} x\right )} \sqrt{-a b}}{2 \,{\left (a^{2} b x + a^{3}\right )} \sqrt{-a b} \sqrt{x}}, -\frac{{\left (B a^{2} - 3 \, A a b +{\left (B a b - 3 \, A b^{2}\right )} x\right )} \sqrt{x} \arctan \left (\frac{a}{\sqrt{a b} \sqrt{x}}\right ) +{\left (2 \, A a -{\left (B a - 3 \, A b\right )} x\right )} \sqrt{a b}}{{\left (a^{2} b x + a^{3}\right )} \sqrt{a b} \sqrt{x}}\right ] \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((B*x + A)/((b^2*x^2 + 2*a*b*x + a^2)*x^(3/2)),x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \[ \text{Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((B*x+A)/x**(3/2)/(b**2*x**2+2*a*b*x+a**2),x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [A] time = 0.285337, size = 81, normalized size = 0.92 \[ \frac{{\left (B a - 3 \, A b\right )} \arctan \left (\frac{b \sqrt{x}}{\sqrt{a b}}\right )}{\sqrt{a b} a^{2}} + \frac{B a x - 3 \, A b x - 2 \, A a}{{\left (b x^{\frac{3}{2}} + a \sqrt{x}\right )} a^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((B*x + A)/((b^2*x^2 + 2*a*b*x + a^2)*x^(3/2)),x, algorithm="giac")
[Out]